<template>
    <div>
        <div class="block">
            <el-carousel :interval="5000" arrow="always" height="600px">
                <el-carousel-item v-for="url in imgUrl" :key="url.name">
                    <div class="pic_item">
                        <el-image :src="url.src" class="small">
                            <div slot="placeholder" class="image-slot">
                                加载中<span class="dot">...</span>
                            </div>
                        </el-image>
                        <p class="p_block">华倩公司，完美管理体验</p>
                    </div>
                </el-carousel-item>
            </el-carousel>
        </div>
        <div class="second_block">
            <div class="second_block_title">
                专为公司人员管理研制的<span>核心产品 </span>                
            </div>
            <div class="second_block_info">
                <el-row type="flex" :gutter="30" justify="space-around">
                    <el-col :span="6">
                        <div class="grid-content bg-purple">
                            <img class="second_block_img" src="~@/assets/img/chengshi1.jpg" alt="">                            
                        </div>
                    </el-col>
                    <el-col :span="6">
                        <div class="grid-content bg-purple">
                            <img class="second_block_img" src="~@/assets/img/chengshi2.jpg" alt="">                            
                        </div>
                    </el-col>
                    <el-col :span="6">
                        <div class="grid-content bg-purple">
                            <img class="second_block_img" src="~@/assets/img/chengshi3.jpg" alt="">                            
                        </div>
                    </el-col>
                </el-row>
            </div>
        </div>
        <div class="three_block">
            <div class="second_block_title">
                为客户打造完美的<span>专业服务 </span>                
            </div>
            <div class="second_block_info">
                <el-row type="flex" :gutter="30" justify="space-around">
                    <el-col :span="10">
                        <div class="grid-content bg-purple">
                            <img class="three_block_img" src="~@/assets/img/chengshi4.jpg" alt="">
                        </div>
                    </el-col>
                    <el-col :span="10">
                        <div class="grid-content bg-purple">
                            <img class="three_block_img" src="~@/assets/img/chengshi5.jpg" alt="">                            
                        </div>
                    </el-col>
                </el-row>
                <el-row type="flex" :gutter="30" justify="space-around">
                    <el-col :span="10">
                        <div class="grid-content bg-purple">
                            <img class="three_block_img" src="~@/assets/img/chengshi6.jpg" alt="">                            
                        </div>
                    </el-col>
                    <el-col :span="10">
                        <div class="grid-content bg-purple">
                            <img class="three_block_img" src="~@/assets/img/xingkong3.jpg" alt="">      
                        </div>
                    </el-col>
                </el-row>               
            </div>
            <div class="second_block_footer">
                <el-row type="flex" :gutter="30" justify="space-around">
                    <el-col :span="4">
                        <div class="query_more">
                            查看更多
                        </div>
                    </el-col>
                </el-row> 
            </div>
        </div>

    </div>
</template>

<script>
export default {
    name: "home",
    data() {
        return {
            imgUrl:[
                {                    
                    name: "banner1",
                    src: require("@/assets/img/banner1.jpg"),
                    title: "这是banner1"
                },
                {                    
                    name: "banner2",
                    src: require("@/assets/img/banner2.jpg"),
                    title: "这是banner2"
                }                
            ]
        };
    },
}
</script>

<style scoped>

.block {
    width: 100%;
}

.second_block_title{
    font-size: 50px;
    font-weight:500;
    text-align: center;
    line-height: 300px;
}
.second_block_info{
    box-sizing: border-box;
    width: 100%;
    margin-bottom: 5px;
    padding: 0 30px; 
}
.second_block_title span{

    color:rgb(26, 244, 252);

}
.second_block_footer{
    box-sizing: border-box;
    width: 100%;
    margin-bottom: 5px;
    padding: 0 30px; 
}
.three_block{
    background: rgb(248, 248, 248);
}
.small {
    width: 100%;
    height: 100%;
    position: relative;
}

.pic_item {
    position: relative;
    height: 100%;
}
.pic_item:hover{
    cursor: pointer;

}
.p_block {
    position: absolute;
    left: 30%;
    bottom: 40%;
    font-size: 60px;
    font-weight:600;
    line-height: 60px;
    background-image: -webkit-linear-gradient(bottom, rgb(65, 66, 65), rgb(224, 226, 224));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.el-row {
    margin-bottom: 20px;
    /* &:last-child {
        margin-bottom: 0;
    } */
}
.el-col {
    margin-top: 80px;
    border-radius: 4px;
}

.bg-purple {
    border: 1px solid #DEDEDE;
    transition: all 0.6s;
}
.bg-purple:hover {
    box-shadow: 0 0 10px rgb(58, 54, 54);
    transform: scale(1.2);
}

.grid-content {
    border-radius: 4px;
    height: 300px;
}
.query_more{
    background: rgb(127, 211, 198);
    text-align: center;
    line-height: 50px;
    border-radius: 25px;
    font-size: 20px;
    font-weight:700;
    color: white;
    margin-bottom: 100px;
}
.second_block_img{
    width: 100%;
    height: 100%;
}
.three_block_img{
    width: 100%;
    height: 100%;
}
</style>